package com.kgc.scd.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CommentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public CommentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCommIdIsNull() {
            addCriterion("comm_id is null");
            return (Criteria) this;
        }

        public Criteria andCommIdIsNotNull() {
            addCriterion("comm_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommIdEqualTo(Integer value) {
            addCriterion("comm_id =", value, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdNotEqualTo(Integer value) {
            addCriterion("comm_id <>", value, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdGreaterThan(Integer value) {
            addCriterion("comm_id >", value, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("comm_id >=", value, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdLessThan(Integer value) {
            addCriterion("comm_id <", value, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdLessThanOrEqualTo(Integer value) {
            addCriterion("comm_id <=", value, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdIn(List<Integer> values) {
            addCriterion("comm_id in", values, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdNotIn(List<Integer> values) {
            addCriterion("comm_id not in", values, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdBetween(Integer value1, Integer value2) {
            addCriterion("comm_id between", value1, value2, "commId");
            return (Criteria) this;
        }

        public Criteria andCommIdNotBetween(Integer value1, Integer value2) {
            addCriterion("comm_id not between", value1, value2, "commId");
            return (Criteria) this;
        }

        public Criteria andCommProidIsNull() {
            addCriterion("comm_proid is null");
            return (Criteria) this;
        }

        public Criteria andCommProidIsNotNull() {
            addCriterion("comm_proid is not null");
            return (Criteria) this;
        }

        public Criteria andCommProidEqualTo(String value) {
            addCriterion("comm_proid =", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidNotEqualTo(String value) {
            addCriterion("comm_proid <>", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidGreaterThan(String value) {
            addCriterion("comm_proid >", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidGreaterThanOrEqualTo(String value) {
            addCriterion("comm_proid >=", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidLessThan(String value) {
            addCriterion("comm_proid <", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidLessThanOrEqualTo(String value) {
            addCriterion("comm_proid <=", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidLike(String value) {
            addCriterion("comm_proid like", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidNotLike(String value) {
            addCriterion("comm_proid not like", value, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidIn(List<String> values) {
            addCriterion("comm_proid in", values, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidNotIn(List<String> values) {
            addCriterion("comm_proid not in", values, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidBetween(String value1, String value2) {
            addCriterion("comm_proid between", value1, value2, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommProidNotBetween(String value1, String value2) {
            addCriterion("comm_proid not between", value1, value2, "commProid");
            return (Criteria) this;
        }

        public Criteria andCommContentIsNull() {
            addCriterion("comm_content is null");
            return (Criteria) this;
        }

        public Criteria andCommContentIsNotNull() {
            addCriterion("comm_content is not null");
            return (Criteria) this;
        }

        public Criteria andCommContentEqualTo(String value) {
            addCriterion("comm_content =", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentNotEqualTo(String value) {
            addCriterion("comm_content <>", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentGreaterThan(String value) {
            addCriterion("comm_content >", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentGreaterThanOrEqualTo(String value) {
            addCriterion("comm_content >=", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentLessThan(String value) {
            addCriterion("comm_content <", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentLessThanOrEqualTo(String value) {
            addCriterion("comm_content <=", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentLike(String value) {
            addCriterion("comm_content like", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentNotLike(String value) {
            addCriterion("comm_content not like", value, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentIn(List<String> values) {
            addCriterion("comm_content in", values, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentNotIn(List<String> values) {
            addCriterion("comm_content not in", values, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentBetween(String value1, String value2) {
            addCriterion("comm_content between", value1, value2, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommContentNotBetween(String value1, String value2) {
            addCriterion("comm_content not between", value1, value2, "commContent");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeIsNull() {
            addCriterion("comm_datetime is null");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeIsNotNull() {
            addCriterion("comm_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeEqualTo(Date value) {
            addCriterion("comm_datetime =", value, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeNotEqualTo(Date value) {
            addCriterion("comm_datetime <>", value, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeGreaterThan(Date value) {
            addCriterion("comm_datetime >", value, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("comm_datetime >=", value, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeLessThan(Date value) {
            addCriterion("comm_datetime <", value, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("comm_datetime <=", value, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeIn(List<Date> values) {
            addCriterion("comm_datetime in", values, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeNotIn(List<Date> values) {
            addCriterion("comm_datetime not in", values, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeBetween(Date value1, Date value2) {
            addCriterion("comm_datetime between", value1, value2, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("comm_datetime not between", value1, value2, "commDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddIsNull() {
            addCriterion("comm_add is null");
            return (Criteria) this;
        }

        public Criteria andCommAddIsNotNull() {
            addCriterion("comm_add is not null");
            return (Criteria) this;
        }

        public Criteria andCommAddEqualTo(String value) {
            addCriterion("comm_add =", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddNotEqualTo(String value) {
            addCriterion("comm_add <>", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddGreaterThan(String value) {
            addCriterion("comm_add >", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddGreaterThanOrEqualTo(String value) {
            addCriterion("comm_add >=", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddLessThan(String value) {
            addCriterion("comm_add <", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddLessThanOrEqualTo(String value) {
            addCriterion("comm_add <=", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddLike(String value) {
            addCriterion("comm_add like", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddNotLike(String value) {
            addCriterion("comm_add not like", value, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddIn(List<String> values) {
            addCriterion("comm_add in", values, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddNotIn(List<String> values) {
            addCriterion("comm_add not in", values, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddBetween(String value1, String value2) {
            addCriterion("comm_add between", value1, value2, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddNotBetween(String value1, String value2) {
            addCriterion("comm_add not between", value1, value2, "commAdd");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeIsNull() {
            addCriterion("comm_add_datetime is null");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeIsNotNull() {
            addCriterion("comm_add_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeEqualTo(Date value) {
            addCriterion("comm_add_datetime =", value, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeNotEqualTo(Date value) {
            addCriterion("comm_add_datetime <>", value, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeGreaterThan(Date value) {
            addCriterion("comm_add_datetime >", value, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("comm_add_datetime >=", value, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeLessThan(Date value) {
            addCriterion("comm_add_datetime <", value, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("comm_add_datetime <=", value, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeIn(List<Date> values) {
            addCriterion("comm_add_datetime in", values, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeNotIn(List<Date> values) {
            addCriterion("comm_add_datetime not in", values, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeBetween(Date value1, Date value2) {
            addCriterion("comm_add_datetime between", value1, value2, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommAddDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("comm_add_datetime not between", value1, value2, "commAddDatetime");
            return (Criteria) this;
        }

        public Criteria andCommLevelIsNull() {
            addCriterion("comm_level is null");
            return (Criteria) this;
        }

        public Criteria andCommLevelIsNotNull() {
            addCriterion("comm_level is not null");
            return (Criteria) this;
        }

        public Criteria andCommLevelEqualTo(Integer value) {
            addCriterion("comm_level =", value, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelNotEqualTo(Integer value) {
            addCriterion("comm_level <>", value, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelGreaterThan(Integer value) {
            addCriterion("comm_level >", value, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("comm_level >=", value, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelLessThan(Integer value) {
            addCriterion("comm_level <", value, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelLessThanOrEqualTo(Integer value) {
            addCriterion("comm_level <=", value, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelIn(List<Integer> values) {
            addCriterion("comm_level in", values, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelNotIn(List<Integer> values) {
            addCriterion("comm_level not in", values, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelBetween(Integer value1, Integer value2) {
            addCriterion("comm_level between", value1, value2, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("comm_level not between", value1, value2, "commLevel");
            return (Criteria) this;
        }

        public Criteria andCommUseridIsNull() {
            addCriterion("comm_userid is null");
            return (Criteria) this;
        }

        public Criteria andCommUseridIsNotNull() {
            addCriterion("comm_userid is not null");
            return (Criteria) this;
        }

        public Criteria andCommUseridEqualTo(String value) {
            addCriterion("comm_userid =", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridNotEqualTo(String value) {
            addCriterion("comm_userid <>", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridGreaterThan(String value) {
            addCriterion("comm_userid >", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridGreaterThanOrEqualTo(String value) {
            addCriterion("comm_userid >=", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridLessThan(String value) {
            addCriterion("comm_userid <", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridLessThanOrEqualTo(String value) {
            addCriterion("comm_userid <=", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridLike(String value) {
            addCriterion("comm_userid like", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridNotLike(String value) {
            addCriterion("comm_userid not like", value, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridIn(List<String> values) {
            addCriterion("comm_userid in", values, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridNotIn(List<String> values) {
            addCriterion("comm_userid not in", values, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridBetween(String value1, String value2) {
            addCriterion("comm_userid between", value1, value2, "commUserid");
            return (Criteria) this;
        }

        public Criteria andCommUseridNotBetween(String value1, String value2) {
            addCriterion("comm_userid not between", value1, value2, "commUserid");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}